package org.leslie.service.impl;

import org.leslie.mapper.UserMapper;
import org.leslie.pojo.User;
import org.leslie.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    // 注入一个 UserMapper对象
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findById(Integer id) {
       return userMapper.findById(id);
    }
}
